home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / CRMSerialDevices.p < prev    next >
Text File  |  1996-05-01  |  2KB  |  84 lines

  1. {
  2.      File:        CRMSerialDevices.p
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CRMSerialDevices;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CRMSERIALDEVICES__}
  28. {$SETC __CRMSERIALDEVICES__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CRMSerialDevicesIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37.  
  38. {$PUSH}
  39. {$ALIGN MAC68K}
  40. {$LibExport+}
  41.  
  42.  
  43. CONST
  44.                                                                 {      for the crmDeviceType field of the CRMRec data structure     }
  45.     crmSerialDevice                = 1;                            {     version of the CRMSerialRecord below     }
  46.     curCRMSerRecVers            = 1;
  47.  
  48. {  Maintains compatibility w/ apps & tools that expect an old style icon     }
  49.  
  50. TYPE
  51.     CRMIconRecordPtr = ^CRMIconRecord;
  52.     CRMIconRecord = RECORD
  53.         oldIcon:                ARRAY [0..31] OF LONGINT;                {  ICN#     }
  54.         oldMask:                ARRAY [0..31] OF LONGINT;
  55.         theSuite:                Handle;                                    {  Handle to an IconSuite     }
  56.         reserved:                LONGINT;
  57.     END;
  58.  
  59.     CRMIconPtr                            = ^CRMIconRecord;
  60.     CRMIconHandle                        = ^CRMIconPtr;
  61.     CRMSerialRecordPtr = ^CRMSerialRecord;
  62.     CRMSerialRecord = RECORD
  63.         version:                INTEGER;
  64.         inputDriverName:        StringHandle;
  65.         outputDriverName:        StringHandle;
  66.         name:                    StringHandle;
  67.         deviceIcon:                CRMIconHandle;
  68.         ratedSpeed:                LONGINT;
  69.         maxSpeed:                LONGINT;
  70.         reserved:                LONGINT;
  71.     END;
  72.  
  73.     CRMSerialPtr                        = ^CRMSerialRecord;
  74. {$ALIGN RESET}
  75. {$POP}
  76.  
  77. {$SETC UsingIncludes := CRMSerialDevicesIncludes}
  78.  
  79. {$ENDC} {__CRMSERIALDEVICES__}
  80.  
  81. {$IFC NOT UsingIncludes}
  82.  END.
  83. {$ENDC}
  84.